﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DOMINIO;
using BL;

namespace Presentacion
{
    public partial class frmGestionarEmpleado : System.Web.UI.Page
    {
        EmpleadoBL empBL = new EmpleadoBL();
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!User.IsInRole("rrhh"))
            {
                GridView1.Visible = false;
                txtBusca.Visible = false;
                btnBuscar.Visible = false;
                btnNuevo.Visible = false;
                Label1.Visible = false;
                Response.Redirect("Default.aspx");
            }
        }

        protected void btnBuscar_Click(object sender, EventArgs e)
        {
            //ObjectDataSource1.DataBinding() = empBL.BuscarEmpleadoPorNombre("");
        }

        protected void btnNuevo_Click(object sender, EventArgs e)
        {
            //Response.Redirect("frmEmpleado.aspx?acc=nuevo");
            Response.Redirect("frmEmpleado.aspx");
        }
    }
}